package com.jair.manager.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**

 * @Description 负责页面跳转
 * @FullName com.jair.manager.controller.PageController 
 * @Author Jair_Huang
 * @Create 2017年5月20日 上午9:40:28   
 */
@RequestMapping("page")
@Controller
public class PageController {

    /**
     * 通用的页面跳转逻辑
     * 
     * @param pageName
     * @return
     */
    @RequestMapping(value = "{pageName}", method = RequestMethod.GET)
    public String toPage(@PathVariable("pageName") String pageName) {
        return pageName;
    }

}